import request from '../utils/request'

export function getOrderList(params) {
  return request({
    url: '/api/orders/page',
    method: 'get',
    params
  })
}

export function getOrderById(id) {
  return request({
    url: `/api/orders/${id}`,
    method: 'get'
  })
}

export function updateOrderStatus(id, status) {
  return request({
    url: `/api/orders/${id}/status`,
    method: 'put',
    params: { status }
  })
} 